import axios from "../request";

// 用户登录
export const userLogin = (data) =>
	axios({
		url: "/user/login",
		method: "post",
		data,
	});

// 获取权限信息
export const getPermission = () =>
	axios({
		url: "/user/permissions",
	});

// 根据Token获取用户信息
export const byTokenGetUserInfo = () =>
	axios({
		url: "/user/byTokenGetUserInfo",
	});
